/*
* @Author: Administrator
* @Date:   2019-08-18 18:33:24
* @Last Modified by:   Administrator
* @Last Modified time: 2019-08-18 18:35:16
*/
const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/movie', {useNewUrlParser: true});

const Cat = mongoose.model('Cat', { name: String });

const kitty = new Cat({ name: 'Zildjian' });
kitty.save().then(() => console.log('meow'));
